<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div><strong>许可协议</strong></div>
    <input type="text" value="1"></input>
    <button>点我</button>
</body>
</html>
<script>
    //innerHTML、value、textContent三个都是属于dom对象下的属性。都表示：获取属性值、设置属性值
    let msg=document.querySelector('div');
    let ipt=document.querySelector('input');

    document.querySelector('button').onclick=function(){
        //
        console.log(msg.innerHTML);
        //
        console.log(msg.textContent);
        //
        console.log(ipt.value);
    }
</script>